package com.cqie.mapper;

import com.cqie.dto.entrepot.EntrepotRecordInfoListDto;
import com.cqie.dto.entrepot.AddEntrepotRecordDto;
import com.cqie.entity.EntrepotRecordInfo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 仓库进取记录表 Mapper 接口
 * </p>
 *
 * @author 不吃海鲜
 * @since 2024-12-19
 */
public interface EntrepotRecordInfoMapper extends BaseMapper<EntrepotRecordInfo> {
    /**
     * 新增进货记录
     * @param addEntrepotRecordDto
     * @return
     */
    Boolean saveStockRecord(AddEntrepotRecordDto addEntrepotRecordDto);

    /**
     * 根据仓库id查询进货取货记录
     * @param warehouseId
     * @return
     */
    List<EntrepotRecordInfoListDto> getEntrepotRecordInfoByMedicineId(
            @Param("warehouseId") String warehouseId ,
            @Param("drugIds") List<Integer> drugIds);
}
